import Vue from 'vue'
import Vuex from 'vuex'

Vue.use(Vuex)

let store = {
  namespaced: true,
  state: {
    listLength: 0 // 列表信息列数
  },
  getters: {
    getListLength (state) {
      return state.listLength
    }
  },
  mutations: {
    setListLength (state, data) {
      state.listLength = data
    }
  },
  actions: {}
}

export default new Vuex.Store({
  modules: { store }
})
